/////////////////////////////////////////////////////////////////////////////
// Name:        dgt_FileDialog.h
// Purpose:     
// Author:      Aleksey Plotnikov & Alla Nabatova
// Modified by: 
// Created:     16/05/2008 13:23:01
// RCS-ID:      
// Copyright:   Diamant Software
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _DGT_FILEDIALOG_H_
#define _DGT_FILEDIALOG_H_

#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "dgt_FileDialog.h"
#endif

/*!
 * Includes
 */

////@begin includes
#include "wx/dirctrl.h"
#include "wx/statline.h"
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
class wxGenericDirCtrl;
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_DGT_FILEDIALOG 10020
#define ID_GENERICDIRCTRL 10022
#define ID_CHOICE1 10023
#define SYMBOL_DGT_FILEDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxDIALOG_MODAL|wxTAB_TRAVERSAL
#define SYMBOL_DGT_FILEDIALOG_TITLE _("Opening schema")
#define SYMBOL_DGT_FILEDIALOG_IDNAME ID_DGT_FILEDIALOG
#define SYMBOL_DGT_FILEDIALOG_SIZE wxSize(400, 300)
#define SYMBOL_DGT_FILEDIALOG_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * dgt_FileDialog class declaration
 */

class dgt_FileDialog: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( dgt_FileDialog )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    dgt_FileDialog();
    dgt_FileDialog( wxWindow* parent, wxWindowID id = SYMBOL_DGT_FILEDIALOG_IDNAME, const wxString& caption = SYMBOL_DGT_FILEDIALOG_TITLE, const wxPoint& pos = SYMBOL_DGT_FILEDIALOG_POSITION, const wxSize& size = SYMBOL_DGT_FILEDIALOG_SIZE, long style = SYMBOL_DGT_FILEDIALOG_STYLE );
	dgt_FileDialog( wxWindow* parent, bool isOpen, wxWindowID id = SYMBOL_DGT_FILEDIALOG_IDNAME, const wxString& caption = SYMBOL_DGT_FILEDIALOG_TITLE, const wxPoint& pos = SYMBOL_DGT_FILEDIALOG_POSITION, const wxSize& size = SYMBOL_DGT_FILEDIALOG_SIZE, long style = SYMBOL_DGT_FILEDIALOG_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_DGT_FILEDIALOG_IDNAME, const wxString& caption = SYMBOL_DGT_FILEDIALOG_TITLE, const wxPoint& pos = SYMBOL_DGT_FILEDIALOG_POSITION, const wxSize& size = SYMBOL_DGT_FILEDIALOG_SIZE, long style = SYMBOL_DGT_FILEDIALOG_STYLE );

    /// Destructor
    ~dgt_FileDialog();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin dgt_FileDialog event handler declarations

////@end dgt_FileDialog event handler declarations

////@begin dgt_FileDialog member function declarations

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end dgt_FileDialog member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin dgt_FileDialog member variables
    wxGenericDirCtrl* m_Dir;
    wxStaticText* m_Label;
    wxChoice* m_Choice;
    wxButton* m_ActionButton;
////@end dgt_FileDialog member variables

	wxString		get_DBName( void );

	private:
		
	bool	m_Open;

};

#endif
    // _DGT_FILEDIALOG_H_
